package com.iterator.mapper.wechat.tcy;

import com.iterator.bean.wechat.tcy.pojo.CartCouponUser;
import com.iterator.bean.wechat.tcy.pojo.CartCouponUserExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @author tean_cy
 * @date 2021/1/13 23:32
 */
public interface CartCouponUserMapper {
    long countByExample(CartCouponUserExample example);

    int deleteByExample(CartCouponUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CartCouponUser record);

    int insertSelective(CartCouponUser record);

    List<CartCouponUser> selectByExample(CartCouponUserExample example);

    CartCouponUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CartCouponUser record, @Param("example") CartCouponUserExample example);

    int updateByExample(@Param("record") CartCouponUser record, @Param("example") CartCouponUserExample example);

    int updateByPrimaryKeySelective(CartCouponUser record);

    int updateByPrimaryKey(CartCouponUser record);

    List<Integer> selectByCouponIdByUserId(@Param("userId") Integer userId);
}